package de.hsos.mad;

public class Conversion {
	float dollarPerEuro = (float) 1.0; 
	
	public boolean convertEuro = true; 
	public float value = 100;
    public float result;

    public void convert () {
    	float euroPerDollar = 1/dollarPerEuro; 
    	if (convertEuro)
    		result = value * dollarPerEuro; 
    	else
    		result = value * euroPerDollar;
} }